import java.util.List;

import org.junit.Test;

import com.client.service.TreeManager;
import com.model.Messages;


public class testTreeManager {
	
	@Test
	public void testQuery(){
		String hql = "from Messages where fromUser = '"+"2"+"' group by touser order by messagetime asc";
		TreeManager treeManager = new TreeManager();
		List<Messages> list = treeManager.query(hql);
		for(Messages m : list)
			System.out.println(m.getMessage());
	}
}
